package com.glacier.yuyuan.modules.admin.sys.domain;

import com.glacier.common.core.domain.TreeEntity;

/**
 * date 2022-11-10 12:48
 * 组织机构表
 *
 * @author glacier
 * @version 1.0
 */
public class Office extends TreeEntity<Office> {

    private static final long serialVersionUID = -6703733526355750312L;
    /**
     * 编码
     */
    private String code;

    /**
     * 机构类型
     */
    private String type;

    /**
     * 状态
     */
    private String status;

    /**
     * 层级
     */
    private Integer grade;

    /**
     * 地址
     */
    private String address;

    /**
     * 邮政编码
     */
    private String zipCode;

    /**
     * 主负责人
     */
    private String primaryPerson;

    /**
     * 副负责人
     */
    private String deputyPerson;

    /**
     * 电话
     */
    private String phone;

    /**
     * 传真
     */
    private String fax;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 父级id拼接字符(以半角逗号分隔，首尾都有半角逗号)
     */
    protected String parentIds;

    public Office() {
    }

    public Office(String id) {
        super(id);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Integer getGrade() {
        return grade;
    }

    public void setGrade(Integer grade) {
        this.grade = grade;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getZipCode() {
        return zipCode;
    }

    public void setZipCode(String zipCode) {
        this.zipCode = zipCode;
    }

    public String getPrimaryPerson() {
        return primaryPerson;
    }

    public void setPrimaryPerson(String primaryPerson) {
        this.primaryPerson = primaryPerson;
    }

    public String getDeputyPerson() {
        return deputyPerson;
    }

    public void setDeputyPerson(String deputyPerson) {
        this.deputyPerson = deputyPerson;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getFax() {
        return fax;
    }

    public void setFax(String fax) {
        this.fax = fax;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getParentIds() {
        return parentIds;
    }

    public void setParentIds(String parentIds) {
        this.parentIds = parentIds;
    }

    @Override
    public String toString() {
        return "Office{" +
                "code='" + code + '\'' +
                ", type='" + type + '\'' +
                ", status='" + status + '\'' +
                ", grade=" + grade +
                ", address='" + address + '\'' +
                ", zipCode='" + zipCode + '\'' +
                ", primaryPerson='" + primaryPerson + '\'' +
                ", deputyPerson='" + deputyPerson + '\'' +
                ", phone='" + phone + '\'' +
                ", fax='" + fax + '\'' +
                ", email='" + email + '\'' +
                ", title='" + title + '\'' +
                ", parentId='" + parentId + '\'' +
                ", parentIds='" + parentIds + '\'' +
                ", sort=" + sort +
                ", children=" + children +
                ", id='" + id + '\'' +
                ", createBy='" + createBy + '\'' +
                ", createTime=" + createTime +
                ", updateBy='" + updateBy + '\'' +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                '}';
    }
}
